package com.chd.driversystem.domain;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Unique;

/**
 * Created by shawnfly on 17-5-2.
 */
@Entity(indexes = {@Index(value = "id ASC",unique = true)})
public class Vehicle {
    @Id(autoincrement = true)
    private Long id;
    @NotNull
    @Unique
    private Long userId;
    private String code;//车辆编号
    private String type;//车辆类型
    private String remark;//描述
    @Generated(hash = 1585851270)
    public Vehicle(Long id, @NotNull Long userId, String code, String type,
            String remark) {
        this.id = id;
        this.userId = userId;
        this.code = code;
        this.type = type;
        this.remark = remark;
    }
    @Generated(hash = 2006430483)
    public Vehicle() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Long getUserId() {
        return this.userId;
    }
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public String getCode() {
        return this.code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getType() {
        return this.type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getRemark() {
        return this.remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    

}
